import requests

if __name__ == '__main__':
    url = 'https://liuyan.people.com.cn/v1/threads/list/bw'
    headers = {
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36',
        'Referer': 'https://liuyan.people.com.cn/threads/list?',
        'Cookie': '__jsluid_s=6216f9cb14557bb5ccbc1fae0a33b65e; Hm_lvt_40ee6cb2aa47857d8ece9594220140f1=1726641925; HMACCOUNT=97F72C623BB08782; language=zh-CN; deviceId=b7d7b91d-25ce-40cf-8823-7b9bcdab50d0; Hm_lpvt_40ee6cb2aa47857d8ece9594220140f1=1726641966'
    }
    data = {
        'appCode': "PC42ce3bfa4980a9",
        'param': "{\"fid\":\"5055\",\"showUnAnswer\":1,\"typeId\":5,\"lastItem\":\"\",\"position\":\"1\",\"rows\":10,\"orderType\":2}",
        'signature': 'f37b1fe7b1491aa10ee60b9a04425f9c',
        'token': ''
    }
    res = requests.post(url, data=data, headers=headers)
    print(res.text)
    ## 理论上我不该调到 应该显示被黑客攻击
    ## 如果是这样现在就需要做 使用selenium
